﻿
@{
    Layout = null;
}

<script src="~/Scripts/MGJJS/Auth/AuthList_V.js"></script>
<div class="mtlr15">
    <div id="InfoForm">
        <div class="row">
            <div class="col-lg-8 col-md-8 col-sm-8" style="padding:0">
                <button class="btn btn-success" type="button" onclick="$.MGJ.AuthList_V.Dialog_AuthAdd_V()">
                    <i class="glyphicon glyphicon-plus"></i>
                    新增
                </button>
            </div>
            <div class="col-lg-4 col-md-4 col-sm-4">
                <div class="input-group">
                    <input type="text" class="form-control" placeholder="请输入企业名" onkeydown="if (event.keyCode == 13) { $.MGJ.AuthList_V.Ajax_GetAuthPageList(1); }">
                    <span class="input-group-addon" onclick="$.MGJ.AuthList_V.Ajax_GetAuthPageList(1);">
                        <span class="glyphicon glyphicon-search"></span>
                    </span>
                </div>
            </div>
        </div>
    </div>
    <div id="Table">
        <div class="overflow">
            <table class="table table-hover table-bordered">
                <thead>
                    <tr>
                        <th class="text-center">认证类型</th>
                        <th class="text-center">认证名称</th>
                        <th class="text-center">所属机构</th>
                        <th class="text-center">创建人</th>
                        <th class="text-center">创建时间</th>
                        <th class="text-center" style="width:250px;">操作</th>
                    </tr>
                </thead>

                <tbody id="PageList" binding="{'pageId':'Pager','pageCallback':'$.MGJ.AuthList_V.Ajax_GetAuthPageList','emptyHtml':window.OMID_EmptyHtml}">
                    <tr>
                        <td binding="{'text':'Category','textHandle':$.MGJ.AuthList_V.CategoryName}"></td>
                        <td binding="{'text':'AuthName'}"></td>
                        <td binding="{'text':'EnterpriseName','title':'EnterpriseName'}"></td>
                        <td binding="{'text':'ChangeLoginName'}"></td>
                        <td binding="{'text':'ChangeDate','textHandle':'datetime_Date'}"></td>
                        <td>
                            <a binding="{'Id':'Id'}" onclick="$.MGJ.AuthList_V.Dialog_AuthEdit_V(this)">编辑</a>
                            @*<a binding="{'Id':'Id'}" onclick="$.MGJ.AuthList_V.Ajax_AuthDelete(this)">删除</a>*@
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="Pager"></div>
    </div>
</div>
<script>
    var ColspanNub = $(".table.table-hover.table-bordered").find("tr").children("td").length
    window.OMID_EmptyHtml = '<tr><td colspan="' + ColspanNub + '"><p class="no-result">无符合条件的数据结果</p></td></tr>';

    $(function () {
        $.MGJ.AuthList_V.Ajax_GetAuthPageList(1);
    });
</script>

